package com.woniu.common.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * jp_hospitalinfo
 * @author 
 */
public class JpHospitalinfo implements Serializable {
    private Integer id;

    /**
     * 省
     */
    private String province;

    /**
     * 市
     */
    private String city;

    /**
     * 县
     */
    private String county;

    /**
     * 医院名称
     */
    private String hospitalName;

    /**
     * 对接人名字
     */
    private String dockingPeoplename;

    /**
     * 对接人电话
     */
    private String dockingPhone;

    /**
     * 医院银行卡号
     */
    private String hospitalCard;

    /**
     * 租金
     */
    private Float hospitalRent;

    /**
     * 收益
     */
    private BigDecimal hospitalSharing;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 股东名字
     */
    private String shareholderName;

    /**
     * 一级分销商
     */
    private String distributorOne;

    /**
     * 二级分销商
     */
    private String distributorTwo;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public String getHospitalName() {
        return hospitalName;
    }

    public void setHospitalName(String hospitalName) {
        this.hospitalName = hospitalName;
    }

    public String getDockingPeoplename() {
        return dockingPeoplename;
    }

    public void setDockingPeoplename(String dockingPeoplename) {
        this.dockingPeoplename = dockingPeoplename;
    }

    public String getDockingPhone() {
        return dockingPhone;
    }

    public void setDockingPhone(String dockingPhone) {
        this.dockingPhone = dockingPhone;
    }

    public String getHospitalCard() {
        return hospitalCard;
    }

    public void setHospitalCard(String hospitalCard) {
        this.hospitalCard = hospitalCard;
    }

    public Float getHospitalRent() {
        return hospitalRent;
    }

    public void setHospitalRent(Float hospitalRent) {
        this.hospitalRent = hospitalRent;
    }

    public BigDecimal getHospitalSharing() {
        return hospitalSharing;
    }

    public void setHospitalSharing(BigDecimal hospitalSharing) {
        this.hospitalSharing = hospitalSharing;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getShareholderName() {
        return shareholderName;
    }

    public void setShareholderName(String shareholderName) {
        this.shareholderName = shareholderName;
    }

    public String getDistributorOne() {
        return distributorOne;
    }

    public void setDistributorOne(String distributorOne) {
        this.distributorOne = distributorOne;
    }

    public String getDistributorTwo() {
        return distributorTwo;
    }

    public void setDistributorTwo(String distributorTwo) {
        this.distributorTwo = distributorTwo;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JpHospitalinfo other = (JpHospitalinfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getProvince() == null ? other.getProvince() == null : this.getProvince().equals(other.getProvince()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getCounty() == null ? other.getCounty() == null : this.getCounty().equals(other.getCounty()))
            && (this.getHospitalName() == null ? other.getHospitalName() == null : this.getHospitalName().equals(other.getHospitalName()))
            && (this.getDockingPeoplename() == null ? other.getDockingPeoplename() == null : this.getDockingPeoplename().equals(other.getDockingPeoplename()))
            && (this.getDockingPhone() == null ? other.getDockingPhone() == null : this.getDockingPhone().equals(other.getDockingPhone()))
            && (this.getHospitalCard() == null ? other.getHospitalCard() == null : this.getHospitalCard().equals(other.getHospitalCard()))
            && (this.getHospitalRent() == null ? other.getHospitalRent() == null : this.getHospitalRent().equals(other.getHospitalRent()))
            && (this.getHospitalSharing() == null ? other.getHospitalSharing() == null : this.getHospitalSharing().equals(other.getHospitalSharing()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getShareholderName() == null ? other.getShareholderName() == null : this.getShareholderName().equals(other.getShareholderName()))
            && (this.getDistributorOne() == null ? other.getDistributorOne() == null : this.getDistributorOne().equals(other.getDistributorOne()))
            && (this.getDistributorTwo() == null ? other.getDistributorTwo() == null : this.getDistributorTwo().equals(other.getDistributorTwo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getProvince() == null) ? 0 : getProvince().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getCounty() == null) ? 0 : getCounty().hashCode());
        result = prime * result + ((getHospitalName() == null) ? 0 : getHospitalName().hashCode());
        result = prime * result + ((getDockingPeoplename() == null) ? 0 : getDockingPeoplename().hashCode());
        result = prime * result + ((getDockingPhone() == null) ? 0 : getDockingPhone().hashCode());
        result = prime * result + ((getHospitalCard() == null) ? 0 : getHospitalCard().hashCode());
        result = prime * result + ((getHospitalRent() == null) ? 0 : getHospitalRent().hashCode());
        result = prime * result + ((getHospitalSharing() == null) ? 0 : getHospitalSharing().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getShareholderName() == null) ? 0 : getShareholderName().hashCode());
        result = prime * result + ((getDistributorOne() == null) ? 0 : getDistributorOne().hashCode());
        result = prime * result + ((getDistributorTwo() == null) ? 0 : getDistributorTwo().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", province=").append(province);
        sb.append(", city=").append(city);
        sb.append(", county=").append(county);
        sb.append(", hospitalName=").append(hospitalName);
        sb.append(", dockingPeoplename=").append(dockingPeoplename);
        sb.append(", dockingPhone=").append(dockingPhone);
        sb.append(", hospitalCard=").append(hospitalCard);
        sb.append(", hospitalRent=").append(hospitalRent);
        sb.append(", hospitalSharing=").append(hospitalSharing);
        sb.append(", createTime=").append(createTime);
        sb.append(", shareholderName=").append(shareholderName);
        sb.append(", distributorOne=").append(distributorOne);
        sb.append(", distributorTwo=").append(distributorTwo);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}